{
    "type": "object",
    "properties": {
        "events": {
            "type": "object",
            "additionalProperties": {
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "name": {"type": "string"},
                        "probability": {"type": "number"},
                        "karma-probability-modifier": {"type": "number"},
                        "explanations": {
                            "type": "array",
                            "items": {
                                "type": "string",
                                "minItems": 1
                            }
                        },
                        "actions": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "minItems": 0,
                                "properties": {
                                    "karma": {"type": "number"},
                                    "label": {"type": "string"},
                                    "description": {"type": "string"},
                                    "effects": {
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "minItems": 0
                                        }
                                    }
                                },
                                "required": [
                                    "karma",
                                    "description",
                                    "effects"
                                ]
                            }
                        },
                        "default-effects": {
                            "type": "array",
                            "items": {
                                "type": "string",
                                "minItems": 0
                            }
                        }
                    },
                    "required": [
                        "name",
                        "probability",
                        "karma-probability-modifier",
                        "explanations",
                        "actions",
                        "default-effects"
                    ]
                }
            }
        }
    },
    "required": [
        "events"
    ]
}
